package org.springblade.modules.admin.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.modules.admin.entity.PartsPrice;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
public class PartsPriceUpdateDTO {

	@NotNull(message = "配件信息id不能为空")
	@ApiModelProperty(value = "配件信息id")
	private Long partsId;

	@NotNull(message = "成本单价不能为空")
	@ApiModelProperty(value = "成本单价")
	private BigDecimal costPrice;

	@ApiModelProperty(value = "销售价格明细")
	private List<PartsPrice> partsPrices;

}
